<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="dtt" uri="http://www.appx.top/dateTimeTag" %>
<!DOCTYPE html>
<html>
<head lang="zh-cn">
    <link rel="stylesheet" href="/css/home.css">
  <%@include file="inc/_header.jsp"%>
    <style type="text/css">
        nav a{
            color:royalblue;
        }
    </style>
</head>
<body>
<header>
    <c:set var="nav_home" value="true"></c:set>
    <%@include file="inc/_nav.jsp"%>
</header>
<div class="container">
   <div class="navbar-right">
        <form class="form-inline" action="/article/list.do">
            <div class="form-group">
                <label class="sr-only" for="wd">关键字:
                </label>
                <input id="wd" class="form-control" type="search" name="title" placeholder="搜索文章">
            </div>
            <div class="form-group">
                <input  class="btn btn-default" type="submit" value="搜索">
            </div>
        </form>
    </div>

<article>
    .

    <h2 class="title_list">
    <p>
      燎火<span>博客</span>
    </p>
  </h2>

    <aside class="left">
        <div class="weather" style="margin: auto;"></div>
        <div class="news">
            <div>
                <h3>
                    <p>
                        最新
                        <span>文章</span>
                    </p>

                </h3>
                <ul class="rank">
                    <c:forEach items="${avNewestList}" var="article">
                        <li>
                            <a target="_blank" href="/article/${article.id}.do">${article.title}</a>
                            <span class="pull-right">
                                <dtt:dateTimeTag time="${article.createTime}"/>
                            </span>
                        </li>
                    </c:forEach>
                </ul>
                <div>
                    <a target="_blank" href="/article/list.do" style="color: #1f637b;">更多文章>></a>
                </div>
            </div>

            <div>
                <h3 class="ph">
                    <p>文章
                        <span>分组</span>
                    </p>
                </h3>
                <ul class="paih">
                    <c:forEach items="${fvList}" var="folder">
                        <li><a target="_blank" href="/article/list.do?fid=${folder.id}">${folder.rname}(<span style="color:red;">${folder.count}</span>)</a></li>
                    </c:forEach>
                </ul>
            </div>


        </div>
    </aside>




    <div  class="post_list left col-lg-9">
    <ul>
        <c:forEach items="${avList}" var="article">
            <li>
                <article>
                    <h4 class="entry_header">
                        <a target="_blank" href="/article/list.do?fid=${article.id}" class="entry_header_type">[${article.folderRname}]</a>
                        <a target="_blank" href="/article/${article.id}.do" class="entry_header_title">${article.title}</a>
                    </h4>
                    <div class="entry_summary">
                        ${article.content}
                    </div>
                    <div class="clear"></div>
                    <div class="entry_footer">
                                <span class="post_comment">
                                    <a class="grayline" title="最新评论时间：${article.lastCommentTime}" href="#">评论(${article.commentCount})</a>
                                </span>
                                <span class="post_view">
                                    <a class="grayline" href="#">阅读(${article.readCount})</a>
                                </span>
                                <span class="post_recomend">
                                    <a class="grayline" href="#">推荐(${article.recommendCount})</a>
                                </span>
                        <span class="post_date"><dtt:dateTimeTag time="${article.createTime}"/></span>
                    </div>
                </article>
            </li>
        </c:forEach>
    </ul>
  </div>


</article>


</div>
<%@include file="inc/_toTop.jsp"%>
<%@include file="inc/_footer.jsp"%>

</body>
</html>
